<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$plugmenu  = $_POST['pmID'];
$menu = $_POST['newsitemenu'];
$site = $_POST['site'];

include '../../../../readcookie.php';
include '../../../../db.php';

$query = "INSERT INTO SiteMenu (menuINDEX,menuSITE, menuNAME, menuPLUGTYPE)
VALUES (9999,'$site','$menu','$plugmenu')";
mysql_query($query) or die('Error, insert query failed');



echo '
<script type="text/javascript">
window.location.href = document.referrer;
</script>
new site created
';
?>

